<%@ page language="java" contentType="text/html" session="true"%>
<%@ page import="camel.client.CamelRemote"%>
<%@ page import="java.util.Properties"%>
<%@ page import="java.util.List"%>
<%@ page import="javax.naming.InitialContext" %>
<%@ page import="camel.client.ParticipantLoginInfo" %>
<%@ page import="camel.client.SessionTicket"%>
<%@ page import="camel.client.ParticipantLoginInfo"%>
<%@ page import="camel.client.TeamMemberStatus"%>

<html>
<title>Use list</title>
<body>
<h4>User List</h4>
<TABLE Border="2" WIDTH="100%" BGCOLOR="#DDDDFF">
<tr BGCOLOR="#ffffee">
    <td><%= "ID"%></td>
    <td WIDTH='40'><%="Password"%></td>
    <td><%= "Email"%></td>
    <td><%= "TEL"%></td>  
</tr>

<br>

<%  
	
		try {
		
			
			CamelRemote  remote = (CamelRemote)session.getAttribute("remote");
			SessionTicket ticket = (SessionTicket)session.getAttribute("ticket");
			
	
			List<TeamMemberStatus> list = remote.queryTeamMemberStatus(ticket);		
			for (TeamMemberStatus ts: list) {
%>
			<tr>
			    <td><%=ts.getId() %></td>
    			<td><%=ts.getPassword()%></td>
    			<td><%=ts.getContact1()%></td>
    			<td><%=ts.getContact2()%></td>
			</tr>
			<br>
<%
			}
		

    	} catch (Exception e) {
	    e.printStackTrace();	    	
    }
%>
</TABLE>
</body>
</html>